home *** CD-ROM | disk | FTP | other *** search
/ MPEG Toolkit / MPEG Toolkit.iso / os2 / mpegenc / misc / headers / ansi.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-01  |  2.0 KB  |  64 lines

  1. /*
  2.  * Copyright (c) 1993 The Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Permission to use, copy, modify, and distribute this software and its
  6.  * documentation for any purpose, without fee, and without written agreement is
  7.  * hereby granted, provided that the above copyright notice and the following
  8.  * two paragraphs appear in all copies of this software.
  9.  *
  10.  * IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR
  11.  * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT
  12.  * OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
  13.  * CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14.  *
  15.  * THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  16.  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  17.  * AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  18.  * ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  19.  * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20.  */
  21.  
  22. /*  
  23.  *  $Header: /n/picasso/users/keving/src/encode/headers/RCS/ansi.h,v 1.2 1993/07/09 00:17:23 keving Exp keving $
  24.  *  $Log: ansi.h,v $
  25.  * Revision 1.2  1993/07/09  00:17:23  keving
  26.  * nothing
  27.  *
  28.  * Revision 1.1  1993/06/14  22:50:22  keving
  29.  * nothing
  30.  *
  31.  */
  32.  
  33. /*===========================================================================*
  34.  * ansi.h                                     *
  35.  *                                         *
  36.  *    macro for non-ansi compilers                         *
  37.  *                                         *
  38.  *===========================================================================*/
  39.  
  40. #ifndef ANSI_INCLUDED
  41. #define ANSI_INCLUDED
  42.  
  43.  
  44. /*  
  45.  *  _ANSI_ARGS_ macro stolen from Tcl6.5 by John Ousterhout
  46.  */
  47. #undef _ANSI_ARGS_
  48. #undef const
  49. #if ((defined(__STDC__) || defined(SABER)) && !defined(NO_PROTOTYPE)) || defined(__cplusplus)
  50. #   define _ANSI_ARGS_(x)   x
  51. #   define CONST const
  52. #   ifdef __cplusplus
  53. #       define VARARGS (...)
  54. #   else
  55. #       define VARARGS ()
  56. #   endif
  57. #else
  58. #   define _ANSI_ARGS_(x)       ()
  59. #   define CONST
  60. #endif
  61.  
  62.  
  63. #endif ANSI_INCLUDED
  64.